﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/PopupSite.master" AutoEventWireup="true" CodeFile="FeeAndCostType.aspx.cs" Inherits="PopupPages_FeeAndCostType" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  <script language="javascript" type="text/javascript">

      function MainValues(sValue1, sValue2) {
          window.opener.SetValueFeeAndCostType(sValue1, sValue2);
          window.close();
      }	

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMaster" Runat="Server">
 <div style="text-align: center;">
        <table cellpadding="0" cellspacing="0" style="border: skyblue 0px solid;" width="100%">
            <tr>
                <td align="right" colspan="2">
                    <asp:Button ID="btnSearch" runat="server" SkinID="CommandButton" Text="<%$Resources:ifrsButton,SEARCH%>"
                        Style="margin-left: 10px" UseSubmitBehavior="false" TabIndex="7" OnClick="btnSearch_Click" />&nbsp;
                    <asp:Button ID="btnCancel" runat="server" CausesValidation="false" SkinID="CommandButton"
                        UseSubmitBehavior="false" Text="<%$Resources:ifrsButton,CANCEL%>" TabIndex="8" />&nbsp;
                </td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="0" style="border: skyblue 0px solid;" width="100%">
            <tr>
                <td align="center">
                    <br />
                    <table cellspacing="1" style="background-color: Transparent">
                        <tr id="trSearch2" runat="server">
                            <td align="left" style="background-color: transparent; text-align: right;">
                                <asp:Label ID="lblSearch2" runat="server" SkinID="Caption" Text="<%$Resources:ifrsField,FeeAndCostTypeCode%>"></asp:Label>&nbsp;:&nbsp;
                            </td>
                            <td align="left" style="background-color: transparent">
                                <asp:TextBox ID="txtSearch1" SkinID="L_TextBoxWithNoColor" runat="server" TabIndex="2">
                                </asp:TextBox>
                            </td>
                        </tr>
                         <tr>
                            <td align="left" style="background-color: transparent; text-align: right;">
                                <asp:Label ID="lblSearch1" runat="server" SkinID="Caption" Text="<%$Resources:ifrsField,FeeAndCostTypeName%>"></asp:Label>&nbsp;:&nbsp;
                            </td>
                            <td align="left" style="background-color: transparent" class="style1">
                                <asp:TextBox ID="txtSearch2" SkinID="L_TextBoxWithNoColor" runat="server" TabIndex="1">
                                </asp:TextBox>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <hr style="width: 98%; color: steelblue;" />
                    <table cellpadding="0" cellspacing="0" width="98%">
                        <tr>
                            <td align="left" colspan="2">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="vertical-align: top; text-align: left;">
                                <asp:Label ID="lblcnt" runat="server" Font-Bold="True" SkinID="CaptionBold"></asp:Label>
                                <asp:GridView ID="gvSearch" runat="server" AllowPaging="True" AllowSorting="true"
                                    CssClass="CSSTableGenerator" PageSize="10" AutoGenerateColumns="False" OnRowDataBound="gvSearch_RowDataBound"
                                    OnSorting="gvSearch_Sorting">
                                    <Columns>
                                        <asp:TemplateField HeaderText="<%$Resources:ifrsButton,SELECT%>" HeaderStyle-Width="50"
                                            ItemStyle-HorizontalAlign="Center">
                                            <ItemTemplate>
                                                <asp:RadioButton ID="radCheck" AutoPostBack="true" runat="server" OnCheckedChanged="radCheck_CheckedChanged" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="FeeAndCostTypeCode" ItemStyle-HorizontalAlign="Center"
                                            HeaderText="<%$Resources:ifrsField,FeeAndCostTypeCode%>">
                                            <ItemTemplate>
                                                <asp:Label ID="lblgvFeeAndCostTypeCode" runat="server" Text='<%# Eval("FeeAndCostTypeCode") %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="FeeAndCostTypeName" HeaderText="<%$Resources:ifrsField,FeeAndCostTypeName%>"
                                            ItemStyle-HorizontalAlign="Left">
                                            <ItemTemplate>
                                                <asp:Label ID="lblgvFeeAndCostTypeName" runat="server" Text='<%# Eval("FeeAndCostTypeName") %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <asp:Repeater ID="repPager" runat="server">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkPage" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%# Eval("Value") %>'
                                            Enabled='<%# Eval("Enabled") %>' OnClick="Page_Changed"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

